package com.ye.zcswzlms.controller;


import com.sun.jnlp.PersistenceServiceImpl;
import com.ye.zcswzlms.entity.Permission;
import com.ye.zcswzlms.service.impl.PermissionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 叶德辉
 * @since 2020-12-20
 */
@RestController
@RequestMapping("/permission")
public class PermissionController {
@Autowired
    PermissionServiceImpl permissionService;
    @GetMapping("/QueryPermision")
    List<Permission> QueryPermision(String stuNo){
        List<Permission> permissions = permissionService.queryPermission(stuNo);
        return permissions;
    }
}
